<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
require_once '../include/lxbase.class.php';

//用户ID
$userid = $_GET["userid"];
$id = $_GET['id'];

$ob = new lxbase();
$ob->setinit("api");
$user = $ob->viewdata("*","apuser","where userid={$userid}");
//素材 ID
$data = $ob->viewdata("*","apfodder","where id={$id}");
$info = array(
    'title'    => $data['title'],
    'content'  => $data['content'],
    'time'     => $data['time'],
    'appname'  => $user['appname'],
);

$ob->smarty->assign("info",$info);
$ob->smarty->display("detail.tpl");
